Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full support for extended base URLs #15

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

drdrew42
Copy link
Member

Building off of #14, this PR ensures that the renderer fully supports extended baseURLs for implementation alongside multiple services on the same server. This includes development mode.

Configuration settings for baseURL and formURL are now sanitized -- and warnings provided for mis-configuration. I think I have handled (perhaps redundantly) the various ways that these might be specified. For example, the PG environment variables for htmlURL and tempURL are specified, thus overriding the automatic generation from Environment.pm. This is done for consistency with other relative URLs in the rendered HTML.

The two interfaces: two-pane problem editor & opl filebrowser / tagging interface, both now work with extended baseURLs as well.

drgrice1 and others added 23 commits May 1, 2023 15:49
The WeBWorK::PG module is now part of PG, and PG has its own environment
so the webwork2 WeBWorK::PG module (and its derivatives) have been
removed.

The WeBWorK::Constants, WeBWorK::Debug, and WeBWork::CourseEnvironment
modules and the webwork2 conf files are no longer needed and so are
removed.  The renderer uses the WeBWorK::PG::Environment module which is
part of PG.  Note that this adds one minor installation step for the
renderer.  The file conf/pg_config.yml must be copied to lib/PG/conf.
Usually that file will work as is, but in some cases administrators may
want to make changes to it.  For example, the externalPrograms are the
standard linux executables and in the standard locations.  On some
systems those may need to be changed.

Most of the WeBWorK::Utils module has been removed.  All that is left is
the two methods that the renderer uses.

In addition the renderer lib directory has been flattened.
lib/WeBWorK/lib/WeBWorK is now just lib/WeBWorK.  With this (among other
things) the WEBWORK_ROOT environment variable is not needed.  Note that
$WeBWorK::Constants::PG_DIRECTORY is not available.  $ENV{PG_ROOT} is
used instead in the renderer code.

Note that the unnecessary encoding and decoding of perl warnings has
been removed.

Also note that the references to drdrew42 have been changed to
openwebwork.
Update the renderer for the restructuring of PG in openwebwork/pg#709
escape quote after encoding json
@drdrew42
Copy link
Member Author

This also includes changes to getThirdPartyAssetURL to properly navigate Mojo::Templates with our local dependencies. Thanks @drgrice1 for your assistance with tracking that whole issue down and cooking up an elegant solution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants